import request from '@/utils/request';
import { AxiosPromise } from 'axios';

//查询代发批次列表
export const billList = (query: any): AxiosPromise<[]> => {
  return request({
    url: '/payment/bill/list',
    method: 'get',
    params: query
  });
};


//查询批次详情
export const billDetail = (id: any): AxiosPromise<[]> => {
  return request({
    url: '/payment/bill/'+id,
    method: 'get'
  });
};

//查询批次详情
export const billDetailByNo = (no: any): AxiosPromise<[]> => {
  return request({
    url: '/payment/bill/getInfo/'+no,
    method: 'get'
  });
};




//查询代发明细列表
export const billSubDetail = (query: any): AxiosPromise<[]> => {
  return request({
    url: '/payment/billDetail/list',
    method: 'get',
    params: query
  });
};




